public class Account{
    //不能随意修改的属性用private修饰
    private String cardNo;

    private double money;

    //提供公共的get/set方法
    public String getCardNo() {
        return cardNo;
    }


    public double getMoney() {
        return money;
    }

    public void setCardNo(String cardNo) {
        this.cardNo = cardNo;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public void addMoney(){
        
    }


    public void show(){
        System.out.println("cardNomber:"+cardNo + ", money:"+money);
    }
}